#!/bin/sh
# wraps around commands to produce the OpenCL kernel
# $1 = input ll name

BINDIR=$(dirname $0)
OPT=$BINDIR/opt
DIS=$BINDIR/llvm-dis

$OPT -load @LLVM_LIBS_DIR@/LLVMPromote@CMAKE_SHARED_LIBRARY_SUFFIX@ -promote-globals -verify < $1 | \
$DIS -o -
exit $?
